<?php


if(!isset(Yii::app()->user->id)|| (isset(Yii::app()->user->id)&&Yii::app()->user->id!=1))
{
    $this->redirect(Yii::app()->request->baseUrl);
}
?>

<?php echo CHtml::form("", 'post'); ?>
<table width="300px">

<tr>
	<td>
		User Name: 
	</td>
	<td>
		<input disabled="disabled" disabled="disabled" type="text" value="<?php echo $user['user_name'];?>"></input>
	</td>
</tr>
<tr>
	<td>
		Acc Liberty: 
	</td>
	<td>
		<input disabled="disabled" type="text" value="<?php echo $user['lr_acc'];?>"></input>
	</td>
</tr>
<tr>
	<td>Email: </td>
	<td>
		<input disabled="disabled" type="text" value="<?php echo $user['email'];?>"></input>
	</td>
</tr>
<tr>
	<td>Ngày đăng ký </td>
	<td><input disabled="disabled" type="text" value="<?php echo $user['date_reg'];?>"></input></td>
</tr>
<tr>
	<td>Money: </td>
	<td><input disabled="disabled" type="text" value="<?php echo $user['lr_money'];?>"></input></td>
</tr>
<tr>
	<td>Khuyến mại: </td>
	<td><input disabled="disabled" type="text" value="<?php echo $user['lr_khuyenmai'];?>"></input></td>
</tr>
<tr>
	<td>Đăng nhập gần nhất </td>
	<td><input disabled="disabled" type="text" value="<?php echo $user['last_login'];?>"></input></td>
</tr>
<tr>
	<td>IP đăng nhập </td>
	<td><input disabled="disabled" type="text" value="<?php echo $user['last_ip'];?>"></input></td>
</tr>
<tr>
	<td>Tình trạng </td>
	<td><?php if($user['active']==1){echo '<b>Đã kích hoạt</b> <input class="button" name="btnban" type="submit" value="Khóa"/>';}else{echo '<s><font color="red"><b>Đang bị khóa<b></font><s><input class="button active" name="btnunban" type="submit" value="Mở khóa"/>';}?>
</tr>
</table>
<?php
	$url = Yii::app()->request->baseUrl . '/backend/admin/users';
	echo CHtml::link('<<Quay lại', $url);
?>



